package GUI;

/**
 *
 * @author Tutti
 */
public class JanelaPrincipal extends javax.swing.JFrame
{
    PainelMedico pnMedicos = new PainelMedico();
    public JanelaPrincipal()
    {
        super("Sistema Crescere");
        initComponents();

    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        painelBotoes = new javax.swing.JPanel();
        btnMedicos = new javax.swing.JButton();
        btnPacientes = new javax.swing.JButton();
        btnContatos = new javax.swing.JButton();
        btnAgendas = new javax.swing.JButton();
        btnFinancas = new javax.swing.JButton();
        btnCIDs = new javax.swing.JButton();
        btnRelatorios = new javax.swing.JButton();
        btnConfiguracoes = new javax.swing.JButton();
        painelPrincipal = pnMedicos;

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btnMedicos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/medico.png"))); // NOI18N
        btnMedicos.setText("Médicos");
        btnMedicos.setAlignmentY(0.0F);
        btnMedicos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnMedicos.setMaximumSize(new java.awt.Dimension(105, 100));
        btnMedicos.setMinimumSize(new java.awt.Dimension(105, 100));
        btnMedicos.setPreferredSize(new java.awt.Dimension(105, 100));
        btnMedicos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnMedicos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMedicosActionPerformed(evt);
            }
        });

        btnPacientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/paciente.png"))); // NOI18N
        btnPacientes.setText("Pacientes");
        btnPacientes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnPacientes.setMaximumSize(new java.awt.Dimension(105, 100));
        btnPacientes.setMinimumSize(new java.awt.Dimension(105, 100));
        btnPacientes.setPreferredSize(new java.awt.Dimension(105, 100));
        btnPacientes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnContatos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/servicos.png"))); // NOI18N
        btnContatos.setText("Contatos");
        btnContatos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnContatos.setMaximumSize(new java.awt.Dimension(105, 100));
        btnContatos.setMinimumSize(new java.awt.Dimension(105, 100));
        btnContatos.setPreferredSize(new java.awt.Dimension(101, 91));
        btnContatos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnAgendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/agenda2.png"))); // NOI18N
        btnAgendas.setText("Agendas");
        btnAgendas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAgendas.setMaximumSize(new java.awt.Dimension(105, 100));
        btnAgendas.setMinimumSize(new java.awt.Dimension(105, 100));
        btnAgendas.setPreferredSize(new java.awt.Dimension(105, 100));
        btnAgendas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnFinancas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/agenda_financeira.png"))); // NOI18N
        btnFinancas.setText("Finanças");
        btnFinancas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnFinancas.setMaximumSize(new java.awt.Dimension(105, 100));
        btnFinancas.setMinimumSize(new java.awt.Dimension(105, 100));
        btnFinancas.setPreferredSize(new java.awt.Dimension(105, 100));
        btnFinancas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnCIDs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/CID.png"))); // NOI18N
        btnCIDs.setText("CIDs");
        btnCIDs.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnCIDs.setMaximumSize(new java.awt.Dimension(105, 100));
        btnCIDs.setMinimumSize(new java.awt.Dimension(105, 100));
        btnCIDs.setPreferredSize(new java.awt.Dimension(105, 100));
        btnCIDs.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnRelatorios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/relatorios.png"))); // NOI18N
        btnRelatorios.setText("Relatórios");
        btnRelatorios.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRelatorios.setMaximumSize(new java.awt.Dimension(105, 100));
        btnRelatorios.setMinimumSize(new java.awt.Dimension(105, 100));
        btnRelatorios.setPreferredSize(new java.awt.Dimension(105, 100));
        btnRelatorios.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        btnConfiguracoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/configuracao.png"))); // NOI18N
        btnConfiguracoes.setText("Configurações");
        btnConfiguracoes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnConfiguracoes.setMaximumSize(new java.awt.Dimension(105, 100));
        btnConfiguracoes.setMinimumSize(new java.awt.Dimension(105, 100));
        btnConfiguracoes.setPreferredSize(new java.awt.Dimension(105, 100));
        btnConfiguracoes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

        painelPrincipal.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout painelPrincipalLayout = new javax.swing.GroupLayout(painelPrincipal);
        painelPrincipal.setLayout(painelPrincipalLayout);
        painelPrincipalLayout.setHorizontalGroup(
            painelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 974, Short.MAX_VALUE)
        );
        painelPrincipalLayout.setVerticalGroup(
            painelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 590, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout painelBotoesLayout = new javax.swing.GroupLayout(painelBotoes);
        painelBotoes.setLayout(painelBotoesLayout);
        painelBotoesLayout.setHorizontalGroup(
            painelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelBotoesLayout.createSequentialGroup()
                .addComponent(btnMedicos, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnContatos, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnAgendas, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnFinancas, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCIDs, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRelatorios, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnConfiguracoes, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(102, 102, 102))
            .addGroup(painelBotoesLayout.createSequentialGroup()
                .addComponent(painelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        painelBotoesLayout.setVerticalGroup(
            painelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelBotoesLayout.createSequentialGroup()
                .addGroup(painelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnContatos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAgendas, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnMedicos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnFinancas, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCIDs, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnRelatorios, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnConfiguracoes, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(8, 8, 8)
                .addComponent(painelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(painelBotoes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(painelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnMedicosActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnMedicosActionPerformed
    {//GEN-HEADEREND:event_btnMedicosActionPerformed
        painelPrincipal = pnMedicos;
    }//GEN-LAST:event_btnMedicosActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAgendas;
    private javax.swing.JButton btnCIDs;
    private javax.swing.JButton btnConfiguracoes;
    private javax.swing.JButton btnContatos;
    private javax.swing.JButton btnFinancas;
    private javax.swing.JButton btnMedicos;
    private javax.swing.JButton btnPacientes;
    private javax.swing.JButton btnRelatorios;
    private javax.swing.JPanel painelBotoes;
    private javax.swing.JPanel painelPrincipal;
    // End of variables declaration//GEN-END:variables
    
    public static void main(String[] args)
    {
        JanelaPrincipal main = new JanelaPrincipal();
        main.setVisible(true);

    }

}
